package com.qq.first_project.service.impl;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.qq.first_project.entity.Friend;
import com.qq.first_project.mapper.FriendMapper;
import com.qq.first_project.service.FriendService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author Qiu
 * @since 2023-01-30
 */
@Service
public class FriendServiceImpl extends ServiceImpl<FriendMapper, Friend> implements FriendService {
    @Resource
    @Autowired
    private FriendMapper friendMapper;

    @Override
    public IPage<Friend> pageList(Page<Friend> page, String name) {
        return friendMapper.pageList(page,name);
    }
}
